<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.ArrayList,PO.NewsInfoPO"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
        <style type="text/css">
* {margin: 0;padding: 0;}
body {background:url("http://localhost:8080/SSH/image/1.2.jpg");}
.news_box {width: 100%;margin: 50px auto;margin-left: 150px;
}
table {	border: 8px solid goldenrod;	}
span {color: goldenrod;	font-weight: bolder;	align: center;}
a{color: black;}
a:hover {color: goldenrod;}
</style>
</head>
<body>  
   <div class="news_box">
      
       <table align="center" width="80%" border="5">
           <tr bgcolor="goldenrod">
                <td bgcolor="black"  align="center"><span>记录</span></td>
               <!--   <td bgcolor="black"  align="center"><span>新闻编号</span></td> -->
               <td bgcolor="black"  align="center"><span>新闻标题</span></td>
               <td bgcolor="black"  align="center"><span>新闻内容</span></td>
               <td bgcolor="black"  align="center"><span>发布时间</span></td>
                <td bgcolor="black"  align="center"><span>发布人</span></td>
               
           </tr>
           <%
                ArrayList list=(ArrayList)session.getAttribute("allInfo1");
                if(list.isEmpty()){
                    %>
                    <tr>
                        <td align="center">
                            <span>暂无信息!</span>
                        </td>
                    </tr>
                    <%
                }else{
                    for(int i=0;i<list.size();i++){
                    	NewsInfoPO info=(NewsInfoPO)list.get(i);
                        %>
                        <tr>    
                            <td align="center"><span><%=i+1%></span></td>
                  
                            <td align="center"><span><%=info.getTitle()%></span></td>
                            <td align="center"><span><%=info.getContent()%></span></td>
                            <td align="center"><span><%=info.getTime()%></span></td>
                            <td align="center"><span><%=info.getMaker()%></span></td>
                          
                           
                        <%
                    }
                }
            %>
      </table>
      
   
         
   
   </div>
   
   


</body>
</html>